package com.easondongh.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author EasonDongH
 * @date 2020/6/1 10:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_goods")
public class Goods implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 产地
     */
    @TableField(value = "produce_place")
    private String producePlace;

    /**
     * 规格
     */
    @TableField(value = "spec")
    private String spec;

    /**
     * 包装
     */
    @TableField(value = "goods_package")
    private String goodsPackage;

    /**
     * 生产批号
     */
    @TableField(value = "batch_no")
    private String batchNo;

    /**
     * 批准文号
     */
    @TableField(value = "promit_code")
    private String promitCode;

    @TableField(value = "description")
    private String description;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 数量
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 预警值
     */
    @TableField(value = "danger_num")
    private Integer dangerNum;

    @TableField(value = "goods_img")
    private String goodsImg;

    /**
     * 供应商id
     */
    @TableField(value = "provider_id")
    private Integer providerId;

    @TableField(exist = false)
    private  String providerName;

    @TableField(value = "enable")
    private Integer enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_NAME = "goods_name";

    public static final String COL_PRODUCE_PLACE = "produce_place";

    public static final String COL_SPEC = "spec";

    public static final String COL_GOODS_PACKAGE = "goods_package";

    public static final String COL_BATCH_NO = "batch_no";

    public static final String COL_PROMIT_CODE = "promit_code";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_PRICE = "price";

    public static final String COL_NUMBER = "number";

    public static final String COL_DANGER_NUM = "danger_num";

    public static final String COL_GOODS_IMG = "goods_img";

    public static final String COL_PROVIDER_ID = "provider_id";

    public static final String COL_ENABLE = "enable";
}